package com.example.group_20.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.group_20.entity.SLogInfor;
import com.example.group_20.entity.TLogInfor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

/**
 * @author: 栋
 * @data: 2023/8/11
 * @descriptions:
 */
@Mapper
public interface TLogMapper extends BaseMapper<TLogInfor> {

    @Select("select* from t_loginfor where teacher_id=#{t_id}")
    public List<TLogInfor> findByTid(String t_id);
    @Select("select* from t_loginfor")
    public List<TLogInfor> finAll();
    @Update("update t_loginfor set group_id=group_id-1 where group_id>#{group_id}")
    public int updateTLogGroupId(int group_id);

}
